package jym.tan.tmdb.method;

import java.net.URL;

import jym.tan.tmdb.TMDB;
import jym.tan.tmdb.constant.TMDBConstants;

public class MovieInfo extends BaseMethod {

	public MovieInfo(TMDB tmdb) {
		super(tmdb, TMDBConstants.BASE_MOVIE);		
	}
	
	public jym.tan.tmdb.bean.MovieInfo getMovieInfo(String movieId, String language) throws Exception {
		URL infoURL = getUrl(movieId, language, TMDBConstants.BLANK);
		jym.tan.tmdb.bean.MovieInfo movieInfo = getTMDBObject(infoURL, jym.tan.tmdb.bean.MovieInfo.class);		
		return movieInfo;		
	}
}
